<table border="1" width="100%">
    <tr>
    {% for field in paginator_fields %}
        {% set direction = (paginator_order_direction == "desc" ? "down" : "up") %}
        <th {% if paginator_order_by == field %}class="ordered_{{paginator_order_direction}}"{% endif %}><a href="{{ ln_query_string("order_by", field, direction)}}">{{ field|trans }}</a></th>
    {% endfor %}
    </tr>
        {% for result in paginator_results %}
            {% if paginator_template %}
                {% include paginator_template with {'result': result} %}
            {% else %}
                <tr>
                    {% for field in paginator_fields %}
                    <td>{{result[field]}}</td>
                    {% endfor %}
                </tr>
            {% endif %}
        {% else %}
        <tr>
            <td colspan="{{paginator_fields|length}}">
                {% trans %}no results{% endtrans %}
            </td>
        </tr>
        {% endfor %}
    <tr>
        <td colspan="{{paginator_fields|length}}">
            {% include 'LukaNavigationBundle::pager.html.twig' %}
        </td>
    </tr>
</table>